package com.neusoft.weixin.repository.account;

import java.util.Map;

import com.neusoft.weixin.entity.User;
import com.neusoft.weixin.repository.MyBatisRepository;




/**
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * 
 * @author calvin
 */
@MyBatisRepository
public interface UserDao {

	User get(String id);
	
	User getByName(String username) throws Exception;
	
	/**
	 * 
	* @Title: getByNameForUpdate 
	* @Description: TODO
	* @param map
	* @return   
	* @return User    返回类型 
	* @throws
	 */
	User getByNameForUpdate(Map map) throws Exception;
	
}
